<%@ include file="/WEB-INF/jsp/include/include.jsp" %>
<html>
<head>
<meta name="label" content="<fmt:message key='users.addUser'/>" />
<meta name="url" content="${ctx}user/add.htm" />
<meta name="menu" content="user" />
</head>
<body>
<font style="color: red;"><span id="errors"></span></font>
<h1><fmt:message key="users.manageUsers"/></h1>
<h3 class="tit">System informations.</h3>
<table class="selector">
	<tr>
		<th><fmt:message key="user.loginName"/></th>
		<th><fmt:message key="user.userName"/></th>
		<th><fmt:message key="user.email"/></th>
		<th><fmt:message key="user.accessType"/></th>
		<th><fmt:message key="users.active"/></th>
		<th><fmt:message key="users.edit"/></th>
		<th><fmt:message key="users.delete"/></th>
	</tr>
	<c:forEach items="${users}" var="row" varStatus="status">
		<tr>
			<td>${row.loginName}</td>
			<td>${row.userName}</td>
			<td>${row.email}</td>
			<td>${row.role.displayName}</td>
			<td style="text-align: center;">
				<c:if test="${row.status.name=='ACTIVE'}"><img src="<c:url value='/images/checkbox.gif'/>"/></c:if>
				<c:if test="${row.status.name=='INACTIVE'}"><img src="<c:url value='/images/checkbox_inactive.gif'/>"/></c:if>
			</td>
			<td style="text-align: center;"><a style="cursor:pointer" href="<c:url value='/user/edit.htm?id=${row.id}'/>"><img id="edit" src="<c:url value='/images/edit.gif'/>"/></a></td>
			<td style="text-align: center;"><img id="delete" src="<c:url value='/images/delete.png'/>"/></td>
		</tr>
	</c:forEach>
</table>
</body>
</html>